/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.zx.examination.barbecue.post.entity;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 理论考试岗位关联表Entity
 * @author zpp
 * @version 2020-03-15
 */
@Table(name="t_examination_barbecue_post", alias="a", columns={
		@Column(name="id", attrName="id", label="主键", isPK=true),
		@Column(name="parent_id", attrName="parentId", label="课程id"),
		@Column(name="barbecue_id", attrName="barbecueId", label="课程id"),
		@Column(name="post", attrName="post", label="岗位编码"),
	}, orderBy="a.id DESC"
)
public class TexaminationBarbecuePost extends DataEntity<TexaminationBarbecuePost> {
	
	private static final long serialVersionUID = 1L;
	
	private String barbecueId,parentId;		// 课程id
	private String post;		// 岗位编码
	
	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public TexaminationBarbecuePost() {
		this(null);
	}

	public TexaminationBarbecuePost(String id){
		super(id);
	}
	
	@Length(min=0, max=50, message="课程id长度不能超过 50 个字符")
	public String getBarbecueId() {
		return barbecueId;
	}

	public void setBarbecueId(String barbecueId) {
		this.barbecueId = barbecueId;
	}
	
	@Length(min=0, max=50, message="岗位编码长度不能超过 50 个字符")
	public String getPost() {
		return post;
	}

	public void setPost(String post) {
		this.post = post;
	}
	
}